import React, { Component }  from 'react'
import {Button} from 'antd'
import './life.less'
export default class Life extends Component{
    constructor(props) {
        super(props)
        this.state = {
            count: 0
        }

    }

    render() {
        return (
            <div className="content">
                <div>生命周期介绍</div>
                <button onClick={this.handleAdd.bind(this)}>点击</button>
                <p>{this.state.count}</p>
                <Button>fff</Button>
            </div>
        )
    }

    handleAdd() {
        this.setState({
            count: this.state.count+1
        })
    }
}

// export default Life